package com.asset.salesforce.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.asset.salesforce.dao.CityDaoImpl;
import com.asset.salesforce.domain.City;

@Service
@Transactional(readOnly=true)
public class CityService {
	@Autowired
	private CityDaoImpl cityDaoImpl;
	
	public City getCityById(Integer id) {
		return cityDaoImpl.getCityById(id);
	}
	public List<City> getAllCityByCountryId(Integer countryId) {
		return cityDaoImpl.getAllCityByCountryId(countryId);
	}
	public City getCityByName(String name) {
		return cityDaoImpl.getCityByName(name);
	}
	public List<City> getAllCities() {
		return cityDaoImpl.getAllCities();
	}
}
